package model.agent.service;

import model.agent.entity.Agent;
import model.agent.entity.Newhouse;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * Created by Administrator on 2019/6/30.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class testcllect {
    @Autowired
    private ICollectservice collectservice;

    @Test
    public void test() {
        List<Agent> list = collectservice.getById("1");
        System.out.println(list);
    }

    @Test
    public void test1() {
        List<Newhouse> list = collectservice.getId("2");
        System.out.println(list);
    }
}
